package com.mzj.saas.mservice.eligible.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 审批流程定义表
 */
@Entity
@Table(name = "saas_auditor_flow")
public class AuditorFlow extends IdEntity {

    @Basic
    @Column(name = "type", nullable = true)
    private Integer type; //类型：1公租房审批流程

    @Basic
    @Column(name = "auditor_code", nullable = true)
    private String auditorCode; //流程编号:自动生成

    @Basic
    @Column(name = "auditor_org_id", nullable = true)
    private Long auditorOrgId; //社区审批机构id

    @Basic
    @Column(name = "next_org_id", nullable = true)
    private Long nextOrgId; //下级审批机构id

    @Basic
    @Column(name = "auditor_user_id", nullable = true)
    private String auditorUserId; //当前审批人

    @Basic
    @Column(name = "status", nullable = true)
    private Integer status; //状态：0停用 1启用

    @Basic
    @Column(name = "auditor_status", nullable = true)
    private Integer auditorStatus; //审批人状态：0停用 1启用
    @Basic
    @Column(name = "area_id", nullable = true)
    private Long areaId; //所属区域id：对应层级关系表的区域id

    @Basic
    @Column(name = "num", nullable = true)
    private Integer num; //序号

    @Basic
    @Column(name = "operation_id", nullable = true)
    private String operationId; //序号
    @Basic
    @Column(name = "last_update_time", nullable = true)
    private Date lastUpdateTime; //序号

    @Basic
    @Column(name = "create_time", nullable = true)
    private Date createTime; //序号
    public Integer getAuditorStatus() {
        return auditorStatus;
    }

    public void setAuditorStatus(Integer auditorStatus) {
        this.auditorStatus = auditorStatus;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getAuditorCode() {
        return auditorCode;
    }

    public void setAuditorCode(String auditorCode) {
        this.auditorCode = auditorCode;
    }

    public Long getAuditorOrgId() {
        return auditorOrgId;
    }

    public void setAuditorOrgId(Long auditorOrgId) {
        this.auditorOrgId = auditorOrgId;
    }

    public Long getNextOrgId() {
        return nextOrgId;
    }

    public void setNextOrgId(Long nextOrgId) {
        this.nextOrgId = nextOrgId;
    }

    public String getAuditorUserId() {
        return auditorUserId;
    }

    public void setAuditorUserId(String auditorUserId) {
        this.auditorUserId = auditorUserId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
